Fixed broken samples.
Merge pull request #1259 from seanpaultaylor/next

Fixed broken samples.