fix overflow in sync control