Fixed bug in the csh_hook.