Fixed a null reference bug due to a missing @Inject annotation