Fix checkbox not changing