Removed unnecessary window clear.