Small fix in AngleLimits function