little fixes on security.c