fixed bug in dictionary 'key' name and supressed a warning message