fix Dynamic Render Path vulnurability

https://codeclimate.com/repos/515f1d7d89af7e1c07006ec4/security/74700af3
00ee80412c9a0fc5957af4f3