Bugfix for stack overflow
Bug workaround for pdf parser