CoreBundle: Prevent multiple legends to appear