fix(ripple): prevent null error while using ripple