fix recommendation is flashed twice