Fix magnet detector with direct call until api is done