fix but where sleep time was a string