fix sleep periods