fixed bug when creating a project