Fix checkbox checked status bug