fix bug that appeared when the date set in the scope is disabled