small fixes for pdf