stacking event handler bug