Fix java input variables parsing.