fix up sleep first bug