Bug fix for rebuild_all_blogs