Fix HasKey