fixed error in dict