fixed issue with detail view