fixes close button