Workaround for JRE bug.

Signed-off-by: Clienthax <clienthax@gmail.com>