Bug fix for saving processing variables