fixed digitize bug