fixed index queries containing spaces