fix encode and decode