Reorder Script Scope Correction for Front end.