fix my collection js bug