Fix the repository deployment error when using Autowired (finally :])