fixing the unchecked checkbox update bug