Fix inverted value