fixed key comparison

fixed key comparison