Fix example bugs