fixes a where clause issue coming from the previews demos