bug fix in /favorite put controller method