fixing key value grid