fixed preview box issue