fix windows errors