fix double event firing for nested events
fix double event firing for nested events

FFroehlich/AMICI,AMICI-developer/AMICI,FFroehlich/AMICI,AMICI-developer/AMICI,paulstapor/AMICI,FFroehlich/AMICI,paulstapor/AMICI,paulstapor/AMICI,FFroehlich/AMICI,AMICI-developer/AMICI,paulstapor/AMICI,AMICI-developer/AMICI