Fixed reversed value checking.