fixed spawn and clone record view functions