fix codec issue on recover