Fix array of keys error