Fix issue caused by typo in conditional statement