Fix type error in Dict library