Preview: Fix bug rendering preview