fixed the scan type printing issue