simulator: fix build
generator: fix parents issue