fix windows 7 bug