fixed the dict problem