fixed the key/value error