fixes incorrect argument for pdf commands