Fix #613 ruler