fix issue with val on checkbox