fix variable typo key to keys