Revert changes to getRelations