HC-05 bluetooth not working

Hello,
i created a simple app in MIT app inventor that should connect to my hc-05 (under name "LINE_AVOIDER", i change it) but it fails with error 507 and i dont know why.
Here are some pictures:



I tried connecting my bluetooth headphones to the app and it worked.
My hc-05 is just connected to power and blinks fast (not connected).
I do not have any other bluetooth apps running in the background or connected to my hc-05.
I also tested the connection with Bluetooth Serial app and it worked normally, I could send data and recieve it using stm32 (for testing).

Please i need help figureing it out because im loosing my mind.

Try moving the three permission requests to screen1.initialize, to give them time to succeed.

There are permission success and failure events that you could add to insure permission success.