patch to fix negative 4 byte numbers