Fixed Bug #7253

Special Thanks to Beret, malufett~!
http://hercules.ws/board/tracker/issue-7253-deep-sleep/

Signed-off-by: shennetsind <ind@henn.et>