fixed a security loading error if the listener's security has not been set