Fixed minor bug with event parsing.