fix bug with tiles parsing