fix examples code