fixed bug that showes program twice in preview.