Fix case where body is before directives