Fix typo in ruler code