Fix assertion about not clearing DataCommands objects