fix fname attribute