Fix bug to display target in views