Weird bug with map loading

Hello!

I tried to load a map (only ground tiles) but I have a weird offset right in the middle of it (see screenshot attached). I tested a bit with Tiled and I discovered it only happens when map’s height is odd. Am I missing something or it is a bug?

The archive attached contains all the code and the map (tmx).

Thanks for the help if you can provide some.