Fixed the bug where opening a tile would sometimes show weird behavior.