Changes made by JNI for possible out of bounds call to rho_table.