bug fixed in retrieving value of a checkbox input