add missing index to function call