Fixing some bugs in the close and "show minimap icon" buttons