Fixing wrapping problem in preview