fix a bug in new project entry code