fixed key value error