Fix some key hash code