fix hookjs bug