Fix comparison between different signs in effects