minor fix for situations where curEvent is not set at all.