Setted correctly the sleep variable