Fixed doctrine error