fix the bug of checkbox