Fixed bug in destroy method of project