fix dictionary spec