fixing dictionary