fixed bug in section copying