HUE-2236 [fb] Cannot open some csv files

Fixed page calculation