Fixed indirect target referencing for Python and Java