serialize bugs