minor fix in sleep script