Need help with Report closing my Switchboard

I have LO 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 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 ?

Upgraded to LO for Mac (Version:
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.