fix empty first index