Fixes race-bug in overflow/bit event handling