Fixed flip book and empty pages and last pages (fixed #10 fixed#11)