Fix to avoid error on windows
Fix order of arguments