small bugfix when clicking on tiles app crashed sometimes