fixing the update