Fix faulty error checker always triggering