Fixes error that occurs when st0 is negative