Fixed bug in checkbox