#168 Fixed crash when using Java 1.6