unit fname error fix