preview generation bug