Fixed bugs related to QSTmerge, to avoid generation of zero-sized blocks