Bug with preferences with type of number where it would throw an exception