TODO: bug of last event