- The prefix was getting changed in the middle of the loop causing the second+ files to have duplicated prefixes added to the objects fullname_with_prefix.

- The merged prefix was put together backwards. The merged prefix needs to be object_prefix+prefix.