Fixed a bug with the process data script.