Bugfix for test in Debug mode.