fix fname issue