fixed non-converging problem