Fixed bug in layoutdesigner with header and footer views