Fixed undefined var for listing tiles bug