revert code for windows bug