Fix bug when "Always On Top" is clicked