(parser) fix negative index in tiles