fixes a potential error for windows;