fixed "Fatal error: Call-time pass-by-reference