Correctly detects for both underflow and overflow in ssqs
Fixes type error in log