Fixed the comparison with the input name and the dictionary name.