fixed pdf commit errors