Cleanup on localization