Fixed a crash bug in deleting tiles in the editor