fix recommendation bugs