Fixed custom script bug on save_changes.php frontend/php.