Fix minor security issue

- Recommended by Brakeman gem