Fix main page checkbox bug