fixes duplicate controls bug