change the order of definition about rosenv_use_hook