Fix two typos caused by previous refactoring