Fix memory stomping bug in astman.