Fix issue 237 about TilemapLayer being one frame off