Fixing bug with relationships in repeaters