fix 5565016 in non-DEBUG builds