Oops. Yes, the set_label line should come before the on_after_commit hook. Will fix.