fix windows compiler error