Fix typo in call to sleep function