fix dictionary storage