Fix purify problem