fixed a bug that raised when fixing the security

fixed a bug that raised when fixing the security issue