Fix Fatal error: Call to undefined function with()