Fix list toggling when cursor was right after list