Fixed bug in QSTdsum