Fix crash when creating preview cache table-original commit by Steve Kondik