fix retrieval of relations
fixed bug regarding configuration