fix comments#index scoping