fixed ruler out of bounds bug