Fixes a bug in the collection method that relates to data binding.