fix beifa and lianying
beifa should be triggered before lianying