fixed auto complete issue (context not correctly initialized)