Fixed clear flag