fix bug at detail view