Fix inverted values