Fix warnings in ruler