fix error when using primitive datum in morph creator