Fix to security exception

https://www.exceptional.io/exceptions/579342608