Fixed bug with checkbox