Fix #124 substitute error