Fix bug with relation list