Minor debug changes
Solved problem with preview scale.(issue #1)