Restore spaces after analysis