Fix crash when creating preview cache table

Change-Id: Ibb9f139ce2c2c9d7c06a60d2aebc00969475f4a2