fixed sorted update