Fix encode decode location.