fixed one off bug in resetting the dictionary members