fix relay state param