Move hook in place

I think the ```mend_rcontrib``` call has to be moved here, since -to my understanding- the other code is never called.