fixed dictionary error