Fix the crash of project which was created by the lua-template-runtime