fix relays