fixes framework crash when event data is a string