fix bug in detailview