fix nullPoiterException after adding favorite