Completed collapseSpaces