fix strange NPE on Java6 + Windows 7 + something else`