Fix forgotten check of dict type