fixed error for pagoda line 545 in helpers.php