Fixed bugs preventing RELAY_BEGIN from being sent.