fix cookie bug of xf_magnet