38-year-old recovered to progress against Indian Sumit Nagal 4-6, 6-1, 6-2, 6-4 and clinch his 1,224th career victory