fixes tmx maps
Merge pull request #6538 from ricardoquesada/tmx_fixed

fixes tmx maps