Fix doctrine