Fixed cyclic unwrapping.