Fixed problem in --preview option

Eliminated empty code blocks.