Fixed typo: when window_hook was set, strobj_hook was called instead