fixed a checkbox value bug