Screen Freezes for 1-5 seconds when waking computer from sleep

Describe the bug:
The screen freezes whenever I wake up my computer from sleep. I noticed that for some reason, BTT disappears when I wake my computer wakes up from sleep, and reappears, however, my screen will freeze for a few seconds before BTT appears in the toolbar. Also, this screen freeze also happens whenever I relaunch BTT (quit BTT and then I reopen it)

**Affected input device:
MacbookPro with touchbar 2017.

not applicable sorry.
Device information:

  • Type of Mac: MacbookPro with touchbar 2017
  • macOS version: 10.14 (Mojave)
  • BetterTouchTool version: 3.086

**Additional information:
This has been happening since April 2018, when I got my macbookpro and BTT license