Bug 877010 - fix infinite loop of overflow events