Fix doctrine extension listener