fix missing "then" in conditional