Fixed improper use of Dictionary