Fixed typos in old code