Fix errors when view result.