fix windows compatitable