avoid hang up in release mode