Fix a bug in the Project Factory