Need help with Report closing my Switchboard

I have LO 6.1.3.2 x64 running on Windows 8.1 Pro against a MariaDB 10.3 database. I have a Switchboard for Form and Report Selections (buttons with macros). When a Report is closed, the Switchboard also closes.
I also have LO 6.1.2.1 running the same “odt” on Mac OS X 10.13.1 remotely to the MariaDB instance. However closing a report on the Mac does NOT close the Switchboard (the preferred option).
How can I stop the Switchboard from closing on Windows when a Report is closed ?
Thx.

Upgraded to LO 6.1.3.2 for Mac (Version: 6.1.3.2
Build ID: 86daf60bf00efa86ad547e59e09d6bb77c699acb), but now report closing (“x” on the Mac report window) also closes the Switchboard on the Mac.

[Solved] Had an error (not syntax) in my coding and the error message-box was being hidden behind my Switchboard.
All working now.