Fix error in oql for existing title history