middleware/security: fixed syntax error