Fixed bug when changing source for wakeup