found and corrected index error for birrp remref processing - script is working with/without RemRef now

Signed-off-by: LK <LK@uni>