fixed bug for subscribe