found the underflow bug, hopefully fixed