Fixed a crash while trying to set an ivalid index with the goto command.