fix errors security