Fixed detached instance bug in ViewEvent