Fix Menu Class for PHP Version.