Fix doctrine listeners