Secure API fix

Hopefully