bug fix for theme-preview