stupid error in indexes