VC6 bug fix