Bug fix for very large negative z