2002 jeep liberty

we are having windsheild wiper problems when the truck heats up they stop working they have replaced switch,wiper battery,relay switch, still nothing works as long as jeep is first started they work after about 40 minutes they quit an thats it for the day. any ideas?