Fixed assert caused by missing quote in an event handler