Fix improper usage of serializer context and error bag