Fixed bug in checkbox update method