fix project add function.