fix a bug when project_data is none