Fix + spec for preview generator