fix a bug in online_hook.php