Fix suspend/hibernation issue