fixed s.t. nonindexed rendering also works