Fixes to relations