points-detect-change: minor bugs fixed