correct a bug in fairmqsampler