fixes for PHP 5.4 fatal errors
remove unneeded reference operators