Fixed Java FX issue