correct bc issue in unserialize function