Figured this one out I found that in demographics if the pharmacy is enter and not selected from the list then when triing to change pharmacy or save pharmacy as default it does not save correctly, but if the pharmacy is correctly selected in the demographics then it saves correctly.