temporary fix for pdf generation on 012