fix the intermittent theme preview