fix for error generator error code