fix load tiles bug