Preview: Fix bug causing duplicate programs