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