fix value conversion