serialize and bug