Fix case when only a single model hash is given for a key.