Fixed open struct problem for JRuby