fix overwriting ast