Fix security manager issue