Fixed a bug stopping the data from updating