Created workaround for Java bug in windows.