code cleanup

fixed bug - when sdk is not indexing, after safe settings of module