Please name the manufacturer of your xbow.
What I'd do immediately is contact customer support of the company that made your xbow.
After talking to them you might either send it in or find a qualified archery shop for repairs. But do call the company.
If the Safety is not working don't use it or try to fix it on your own.
That's what I'd do.
JW