fixing segfault from setting ruler scale