further added more compatability for Tiled map editor