fixed event detection