fix view relations index