fix variable reference in PHP 5.4