Fix for merge() to keep parent_array and position