fix replacement in snapshot generator