Use push() instead of insert()
alligator first calls clear() and then calls insertPage() to insert a page at index 0. There is no point in inserting at a specific position when there are no pages left.
Signed-off-by: Matej Starc matej.starc@protonmail.com