migration: fix parameter validation on ram load