Fix bug with resource detail view