Fix improper usage of "mode" on windows. ignore mode, plz