small ui bugfix
The table on Preferences > Profiles > Session wasn’t updating when a different profile was selected.
Fix some profile settings bugs
Missing keys & terminating null in copyAttributes,
and moved a few lines of code to match UI.