fixed sleep script, panel