Fix bug in view result