Fix for wrong template project read and write.