fix bug at get magnet error