fix the checkbox not being able to uncheck