fix bug for setMinLoadingTime