Change the access argument and fix a PHP error