Fix local-gen