fixes event-padding bug