Fix typoes. Closes #527