Fixed openjdk6 specific bug

Fixes #58