fix extra element on closed page

Signed-off-by: Illori <illori@simplemachines.org>