Removed unnecessary code for panel corner