Some magic which may fix crash. Changing layer to math.huge fixed crash for the original gadget from trololo map.