Fixed method signature of dup() method in codec