doctrine error fix