A fix for sleep().