fixed a minor bug where samples from capture devices could return no data