fixed a bug in how we determine if a signed wrap happened