Your profile keeps all of the configuration settings. However, script changes made to screens are saved to the screens, not the profile. Any time any element is customized (profiles, screens, macros, etc.) they should be saved as something unique. So in short, the first thing you should have done when you went to edit the screen is save it as something unique and made your edits to it............ just the same as you did for the profile.