Bug fix: even when there is no registration it's necessary to pass on
the bean