fix for issue #42 - Crash with IBM Java 7