FIX: issue #854 (function's first block's contents disappear)
Merge pull request #855 from qtxie/issue-854

FIX: issue #854 (function's first block's contents disappear)