Preview: Fix bug preventing preview from working