Collection count bugfix.