Make sure all used elements are properly detached