Fix for JoglNewtAwtCanvas