Fixed typo on getKey() and getValue()