Fix bug in application Index and Team detail page