class require error fix