fixed bug on initializefav