Fix substitute error.