Handle index not set warning