Fixed a crash when restoring a project with custom params