Fixed bug where wake time wasn't updated