Fixed calling the collection element method for php 5.3.