fixed dictionary checking