fix for relay