fix(ripple): make detach method work properly