Never-ending detection of custom event - what's going on?