Made Portfolio work in preview mode