fixed preview button bug