Fix operator for error check from AND to OR