Fixed underflow on tilemap