fixed a bug when modifying the details of a project