Fixed some examples bugs.