Fix of HEX-1508 using temporary page to get factor levels