Fixes issue #76.

If the hook is virtual, we should call it in a virtual way.