fix scalebar legend in firefox