fixed java errors in CTC