bugfix for mock compatibile for windows