Fix preview condition