Converting preferences loaded from json file from Long to Integer. Becasuse in Java a Long value is not equal to a similar Integer value. Who could imagine this...