Fix override detection