Update version before emitting events