Different behaviour of scripts when loading map

Fixed by deleting and recreating script.