This is very dirty, but not much I can do about it in Java :|
Fixes #78