fixed dict:append bug