Fixed dict def errors