Fixes checkbox not resetting