Fixed PDFFlatten bug and green tick bug