Fix bug when dropping incomplete beta loops.
Fix bug when dropping incomplete beta loops.

A misplaced bracket meant beta loops would be dropped from the frame
even though they had completed the correct number of iterations.

hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande