fix PreUpdate and PrePersist