Fix memory leaks, debug show multi-row jobs correctly