Fix error if you use a magnet just after app start