fix issue where checkbox value is 0 or false