Fixed another small bug with relations.