fixed sigsq bug