fixed pdf renderering timing