Fixes infinite loop when using delete-releases

... duplicating them which fixes the infinite loop when calling delete-releases