Fix #704 (if statement corrected)