fixed bug in scheduled/scanagent scans