fixing the checkbox