Fix for doctrine