bug fixes on tiles