fixing peer removal bug (#246)