Fix preferences read string -> number