Fix typos and hashing of _id