Fix bugs and set default variables
Modify and Add for lagecy-IE option