fix issues

fixed sleep issues [10.9 Mavericks Tested]