fixbug when create collection