fix generate project failed