fix the redundant points problem