render viewer a bit more correct