Fix memory leak.

Infinite observable cause memory leaks.