fixing require error