Update system/helpers/main.php