Fixed the list items not closing after expanded

Hopefully this doesn't conflict with any other edits.

Signed-off-by: nicholaslum444 <nicholaslum444@hotmail.com>