Fix workign on win