correct typos in functionspec