bug fix for resolveLoader.root