fix the bug with the checkbox