Fix err scanner issue