fixed preview popup bug