fix security fail issues