fixed ast printing