If there is a \linemod0 keyword in the section properties, the line numbering with a step of 5 will be activated. That is incorrect behavior.
can you upload a test file?
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.