fix section missmatch by duplicating code