bug fix: IsLog is not set at figure viewer
bug fix: avoid zero-division