Fixed some security issues.