fixed a bug (collection crud)