If clause fixed