bugfix in debug build