fix bug #1 - hook.php