fix inconsistence in sample adaptor