fix index call