fix bug and set default valuetag to checkbox