Fixes for security

Signed-off-by: Arief M Utama <arief.utama@gmail.com>