fix up bug where collectionName would keep getting set when it was
defined