fix parser tag prolog

use prolog flag instead of file offset