Fixing two typos in one if condition