Fix problems with my local_mode blunder.