Fix fatal error on section function