fixed preview window bug in chrome