Fix framework bug.
Merge pull request #1360 from fmoloney/sampleappbug

Fix small framework bug.