bugfix in sqrt-ratio