fixed error for pagoda in helpers.php