fixed sleep() bug in Helper class