Fixed the bug of the last screenshot that not appear in the pdf and in the list of screenshots