MADISON, Wis. (AP) — A Wisconsin appeals court has ruled that a doctor who allegedly had inappropriate sexual contact with three female patients was properly fired.

The appeals court on Thursday overturned a Dane County circuit court's ruling in favor of former Dean Health Systems allergist Dr. Don Bukstein. The lower court had ruled that Dean breached its contract with Bukstein when it fired him in 2012 after he had worked there since 1981.

Dean appealed. The 4th District Court of Appeals says Buckstein's lawsuit should have been rejected because the at-will provision in Bukstein's contract allowed him to be fired without cause.

Bukstein was awarded $2.2 million by a Dane County jury in 2016 after determining he was improperly fired.

Bukstein's attorney, Lester Pines, said he was likely to appeal to the Wisconsin Supreme Court.