undo debug ,fix pdf bug :)