Fixed syntax error in conditional