Bug with unproper determining number of pages in flexpaper. It didn't take into account json file.