Fix for EAST and WEST panel closing (recent refactoring caused a regression)