Fix bug when view collection