fixed running update function bug. Should help the efficiency of the app