fix close button misplaced error