fixed preview bug
Merge pull request #206 from paczian/master

fixed preview bug