Fixed Spec pdf compilation bug