bugfix in lanczos and clamping bilinear