fix bug with checkbox value