fix concurrency error (an integer must have been atomic). Still issues with sticky partitions are present.