partial vb6 fix for debug