fix core from adding/deleting collection