delay getminmaxdist when upload new data