fixed a bug in event analyzer