fix doctrine