fixed encoding expire time bug