Shared scratch scheduling fix