some fixes pdf