Fix astPtr check.