Why is guiEvent on ofxUi executed twice when clicking a button?

i am creating a user interface using the ofxUI addon but the guiEvent(ofxUIEventArgs &e) is being executed twice every time i select a button or slider … Is there any way to prevent this ?
Thanks