Fix an issue of Security Mode