Fixed Java error