fixed a bug causing problems with running jar on Windows