fix the source code cause exception when a solution updated