fix the deail view issue