Use correct condition in previous.