Fix security issues
Fix bug for the configure files