fix order so error numbers get added right