fix backwards compatibility

fix backwards compatibility.