fixing viewer scaling