Fixed a PHP Passed by reference Error on PHP 5.4+