Fixed an exception with the advanced duplicator