fixed contextIndex issue when cleaning context ( removing directories/invalid content from context )