fix bug in view-only rendering