Quick fix for triggering visibility events