Fixed a bug in addfontdir routine.