Fixed bug with events hash not being copied properly