Fixed the duplicate bug in recommend + retract goal