fixing boolean value normalization