Fixed crash

Tile modifications caused crash again