Fix the query result view (show pdf file)