realtime_detection doesn't crash anymore + comment