fixed bug to detail view