使用给定的输入，编辑下面的句子，并使其具有更好的流畅性和准确性。
Maggie was so tired. She had to work late into the night and forgot to set the alarm before she went to bed. She had to get up at 5am for an important meeting with her boss in the morning.
Due to working late into the night, Maggie forgot to set her alarm before going to bed, causing her to wake up exhausted at 5am for an important meeting with her boss.