fixed a bug that messed up wake_minutes calculation