fixed subscibe error. Dont put subscribe into loop