fixing some typos and improper invocation of removeObserver