Compiled successfully in 296 ms.
Error: Exception: The bitmap[0] does not exist at line 575

Im working on a script and it was compiling fine but now i get that error.
which opens another window under globals. i cant seem to find the problem. here my script, what ive done so far.

Simba Code:
program TinderboxPro;
{$DEFINE SMART}
{$i srl/srl.simba}
{$i sps/sps.simba}
var
teleport:integer;
x,y:Integer;
bank:TPointArray;

procedure DeclarePlayers;
begin
  HowManyPlayers := 1;
  NumberOfPlayers(HowManyPlayers);
  CurrentPlayer := 0;

  with Players[0] do
  begin
    Name := '';
    Pass := '';
    Nick := '';
    Active := True;
    Pin := '';
    BoxRewards := ['Xp', 'mote', 'ostume', 'oins', 'aphire', 'ssence'];
  end;
end;
 procedure SetDtm;
 begin;
  teleport := DTMFromString('mbQAAAHicY2VgYLBlYmBwBmIzILaCssUYGRj4gVgUiGWgWE/DgMHd3pghK/IAQ2zgUob86dcZsAFGLBgMAN03B7E=');
 end;
 procedure FreeeDtm;
 begin;
  FreeDTM(teleport);
 end;

procedure ToBank;
 begin;
  FTab(tab_Magic);
  if FindDTM(teleport, x, y, MIX1, MIY1, MIX2, MIY2) then;
  Mouse(x, y, 4, 4, False);
  ChooseOption('revious-des');
  wait(18000+random(200));
  SPS_WalkPath(bank);
  Writeln('Walking to bank');
  OpenBankFast('clt');
  wait(900+random(200));
  if PinScreen then
   InPin(Players[CurrentPlayer].Pin);
  if BankScreen then
  DepositAll;
 end;


begin;
 SRL_SixHourFix := True;
 SMART_FixSpeed := True;
 DeclarePlayers;
 LoginPlayer;
 SetupSRL;
 SPS_Setup(RUNESCAPE_SURFACE,['6_6','6_7','7_7','7_6']);
 bank := [Point(2592, 2722), Point(2601, 2721), Point(2606, 2718), Point(2615, 2716), Point(2625, 2717), Point(2639, 2717), Point(2653, 2716), Point(2664, 2711), Point(2688, 2709), Point(2702, 2707), Point(2715, 2708), Point(2728, 2708), Point(2737, 2708), Point(2738, 2695), Point(2739, 2681)];
 SetDtm;
 ToBank;
 FreeeDtm;
end.

any help be much appreciated