fix bug with library file dump