fix error security