catch relation IndexError