fixed small bug which caused data to not be updated