Fix last page used and favorite page preferences. To get these working some data types had to be changed around.