Fixing scalebar for 0 and log