Fix "Accessing invalid virtual file" issue
Changes regarding completion, removing modules, etc