Fix wrong method call to remove pid