fixed some issues with creating multiple related items in one sequence of uploads