fixed update relay state