fix update for createdAt and ModifiedAt