fix logical value mapping