Fixes Crash when deallocation sections in form. (back ported from 2.1.0)