LibreOffice Writer - Difference in page number of on Status Bar and Current Page in Print Dialog Box of Mail Merge Data

I notice this behavior on different versions of LibreOffice and different version of Ubuntu that if I save mail merge data of several records in a single file, the page number on the status bar and the current page number of print dialog box is different. The difference in the last page number and the current page number is equal to total number of records. But this creates a confusion on what to print. Every time I have to click on current page number and then do the calculation to print from what page number to what page number. I also tried unticking Print automatically inserted blank pages. But nothing works. Is there any solution for this problem?