Fix doto refactoring error