fix removed redundant encoding