fix exceptions key name and type