fix project read/write