Minor fixes

- used @Autowired in TaskManager
- comparing enum instead of string