fixed no index bug