Repait relation pos index in constructor
reparir errs