Fixing Java error.