Corrects two small refactoring errors.