fixed gs if no index is available