fix bug with checkbox