fix wrong calls to javacomplete