fixed the bug connected with removing observer twice

fixed the bug connected with removing observer twice