Fix faulty error print