Fixed a bug in assignment collection.