fixed example bugs