Fixes #393 rulers are now displayed correctly