fixing dictionary build issue