Fix bug which was discarding properties following an `onEvent`