Fix typos in implementation