ios 12 dictionary not working