Fix ratio rendering

fixing issue #123