Preview: Fixed bug preventing preview from working