Fixed incorrect update