fixed rebuild_startup_packet