fixed error when appending date during insert operation