Fix serial generation