make sure lastEvent exists