fixed dict setting, it actually doesn't work before