fix resource/update on windows