fixes the checkbox issue