Fixed bug when saving project