Fix to reversed logic