Fix bug on ripping introduced in cca8714d924f3406342aca0666c98d5a42f48616