Fix bug in Joim_Security