improved the line items backward compatibility, closes #6109
fixed the access permissions