Replacing reference in decoder