Fixed problem with mongo repository autowire.