fix value returned by checkbox input