fixing bug in userDict generation