Fixed make dict bug