fix updatedAt and createdAt