Bug fixes

This pull request fixed 2 bugs
- Fixed memory corruption when copying scenario (some conditions pointed to wrong parents and a crash occured)
- Fixed weekday condition editing, race conditions made it so it didn't always have the same behavior