fixed bug where two pages flip in opposite directions at the same time