fix parse bug to exclude reference text