event order bug