doctrine fix