fix favorite ajax call