ikfast reduce degenerate cases