Fixed preference parsing (hashtable was concurrently updated while iterating on it).