Also removed promotion of writeErrors to top level field errors and made sure that right error fields are used.