fixes problem with Key==Value; correct K,V reading