BUGFIX: errors due to typo

1) A + forgotten (= instead of +=)
2) getKey() instead of getValue()