Dictionary can now refresh correctly and tested