Fixed macros dialog to clear the list when switching profiles and updated scripts.