Java windows bug