Clean up flag