pdf fix for hanging