Fixed dict unpacking error